﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<SDT.Site.ViewModels.ArticleIndexViewModel>" %>
<div class="clear"></div>
    <%var path = "/Article/index/{0}/{1}/{2}/{3}/{4}/{5}/{6}/{7}"; %>
    <div class="breadcrumbs">
        <a href="/home">Trang chủ</a>
        <span>Lê Hoàng Việt</span>
        <%if (Model.Categories != null)
          { %>
          <span></span><%=Model.Category!=null?Html.Encode(Model.Category.Name) :string.Empty  %>
        <%} %>
<%--        <%if(Model.ProductType != null){ %>
        <span></span>
        <%var l1 = string.Format(path, Model.TypeID.HasValue ? Model.TypeID.Value : 0, 0, 0, 0, 0, 0,0, 0); %>
        <a href="<%=l1 %>"><%= Html.Encode(Model.ProductType.Name)%></a>
        <%} %>
        <%if(Model.Category != null){ %>
        <span></span>
        <%var l2 = string.Format(path,Model.TypeID.HasValue ? Model.TypeID.Value : 0, Model.CategoryID.HasValue ? Model.CategoryID.Value : 0, 0, 0, 0, 0,0, 0); %>
        <a href="<%=l2 %>"><%= Html.Encode(Model.Category.Name)%></a>
        <%} %>
        <%if(Model.City != null){ %>
        <span></span>
        <%var l3 = string.Format(path,Model.TypeID.HasValue ? Model.TypeID.Value : 0, Model.CategoryID.HasValue ? Model.CategoryID.Value : 0, Model.CityID.HasValue?Model.CityID.Value:0, 0, 0, 0, 0, 0); %>
        <a href="<%=l3 %>">Tại&nbsp;<%= Html.Encode(Model.City.Name)%></a>
        <%} %>
        
        <%if(Model.District != null){ %>
        <span></span>
        <%var l4 = string.Format(path,Model.TypeID.HasValue ? Model.TypeID.Value : 0, Model.CategoryID.HasValue ? Model.CategoryID.Value : 0, Model.CityID.HasValue?Model.CityID.Value:0, Model.DistrictID, 0, 0, 0, 0); %>
        <a href="<%=l4 %>">Quận/ Huyện:&nbsp;<%= Html.Encode(Model.District.Name)%></a>
        <%} %>
        <%if(Model.ConvertArea != null){ %>
        <span></span>
        <%var l5 = string.Format(path,Model.TypeID, Model.CategoryID, Model.CityID, Model.DistrictID, Model.AreaID, 0, 0, 0); %>
        <a href="<%=l5 %>">Diện tích&nbsp;<%= Html.Encode(Model.ConvertArea.Name)%></a>
        <%} %>
        <%if(Model.ConvertPrice != null){ %>
        <span></span>
        <%var l6 = string.Format(path,Model.TypeID, Model.CategoryID, Model.CityID, Model.DistrictID, Model.AreaID, Model.PriceID, 0, 0); %>
        <a href="<%=l6 %>">Giá&nbsp;<%= Html.Encode(Model.ConvertPrice.Name)%></a>
        <%} %>
        <%if(Model.PathTitle != null && Model.PathTitle !=string.Empty){ %>
        <span></span>
        <%= Html.Encode(Model.PathTitle)%>
        <%} %>--%>
    </div>
<div class="clear"></div>
<div class="line"></div>